﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Blog.Framework.Models
{
    public class TagWeight
    {
        public TagWeight()
        {
            Id = Guid.NewGuid();
        }

        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Url { get; set; }
        public int Count { get; set; }
        public double Factor { get; set; }
        public int Weight { get; set; }
        public string FontSize
        {
            get
            {
                switch (Weight)
                {
                    case 1:
                        return "xx-small";
                    case 2:
                        return "x-small";
                    case 3:
                        return "small";
                    case 4:
                        return "medium";
                    case 5:
                        return "large";
                    case 6:
                        return "x-large";
                    case 7:
                        return "xx-large";
                }
                return String.Empty;
            }
        }
    }
}
